package lab02.text05;

/**
 * Created by dell on 2017/10/15.
 */
public class Cubic {
    Cubic(){}
    //属性：立方体类，变量表示一个立方体的长、宽和高
    int length;
    int width;
    int height;
    double volumn;

    //方法：对这三个变量进行初始化、求立方体的体积。创建一个对象，求给定尺寸的立方体的体积。


    public void setHeight(int height) {
        this.height = height;
    }

    public void setWidth(int width) {
        this.width = width;
    }
    public void setLength(int length){
        this.length = length;
    }
    public double getVolumn(){
        volumn=length*width*height;
        return volumn;
    }

    public static void main(String[] args) {

    }
}
